package com.example.androdlearning2425.ui.theme.kotlin

fun main() {
    val totalMB = 20 * 1024
    val usedMD = 10 * 1024 +480
    val leftMB = computeLeft(totalMB, usedMD)
    if (leftMB < 1024) {
        println("Alert:left less than 1GB")
    }else{
        val leftGB = leftMB / 1024

        println("left $leftGB GB")
    }
}
    fun computeLeft(totalMB: Int,usedMD: Int): Int = totalMB - usedMD




